<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>、
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
    <script src="/assets/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
    <link href="/assets/css/main.css" rel="stylesheet">
    <style>
        body,html{
            margin: 0;
        }
        body{
            background-image: url("/assets/images/background.jpg");
            background-size: cover;
        }
    </style>
</head>
<body>
<div class="login-container">

    <form th:action="'/register'" th:method="'post'" class="login-form">
        <!--<form class="login-form">-->
        <div th:text="${message}" class="error"></div>
        <h2 style="color:red" class="text-center">焕新网注册</h2>

        <div class="form-item row" >
            <label for="account" class="col-sm-2 col-form-label">手机号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="account" placeholder="请输入手机号" name="phone">
            </div>
        </div>
        <div class="form-item row" >
            <label for="email" class="col-sm-2 col-form-label">email</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="email" placeholder="请输入email" name="email">
            </div>
        </div>

        <div class="form-item row" >
            <label for="nickname" class="col-sm-2 col-form-label">昵称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="nickname" placeholder="请输入昵称" name="nickname">
            </div>
        </div>

        <div class="form-item row">
            <label for="password" class="col-sm-2 col-form-label">密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="password" placeholder="请输入密码" name="password">
            </div>
        </div>
        <div class="form-item text-center">
            已有账号？请<a th:href="'/login'">登录</a>
        </div>
        <div class="form-item">
            <button type="submit" class="btn btn-primary login-submit">保存</button>
        </div>
    </form>
</div>

</body>
</html>
